package com.businesswebsite.businesswebsite.FormalWebExplot.Service.User;

import com.businesswebsite.businesswebsite.FormalWebExplot.Entity.CompanyUser;

import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;

public interface CompanyUserService {
    //    登录
    CompanyUser Login(String user_account, String password);
    //    注册
    Integer Register(CompanyUser companyUser);
    //    修改
    Integer Update(CompanyUser companyUser);
    //    查找用户 用于修改密码
    CompanyUser SelectByAccount(String user_account);
    //    记录上次登陆时间
    Integer UpdateLastLoginTime(String user_account, Timestamp last_login_time);
    //    注销用户
    Integer Delete(String user_account);

}
